<?php header("Content-type: text/plain; charset=iso-8859-1");?>
#type=basic
#country=fr
#currency=eur
#update=no
#quoted=yes
url	title	description	price	offerid	image	category	availability	deliverycost
<?php
	        function calculport($poids){
	 			return 0;
	    	}

?>
<?php

	require_once("../../classes/Produit.class.php");
	require_once("../../classes/Image.class.php");
	require_once("../../classes/Variable.class.php");
		
	$produit = new Produit();	
	$produitdesc = new Produitdesc();

	$image = new Image();
	
	$query = "select * from $produit->table where ligne='1'";
	$resul = mysql_query($query, $produit->link);
	
	$variable = new Variable();
	$variable->charger("urlsite");
	
	while($row = mysql_fetch_object($resul)){

		$produitdesc->charger($row->id);
		
		$query2 = "select * from $image->table where produit='$row->id'";
		$resul2 = mysql_query($query2, $image->link);
		$row2 = mysql_fetch_object($resul2);

        $description = str_replace("\r\n", " ", $produitdesc->description);	
		$description = str_replace("\n", " ", $description);	
   		$description = str_replace("<br>", "<br />", $description);	
   		$description = str_replace("<BR>", "<br />", $description);	
   		$description = str_replace("\n", " ", $description);	
		$description = str_replace("<br />", " ", $description);	
        $description = strip_tags($description);
	
		$description = trim($description);
		
		if($row->promo)
                $prix = $row->prix2;   
        else                      
  				$prix = $row->prix;
        
?>
<?php echo $variable->valeur; ?>/produit.php?ref=<?php echo($row->ref); ?>	<?php echo($produitdesc->titre); ?>	<?php echo($description); ?>	<?php echo($prix); ?>	<?php echo($row->ref); ?>	<?php echo $variable->valeur; ?>/client/gfx/photos/produit/<?php echo($row2->fichier); ?>	 CATEGORIE	En Stock	<?php echo(calculport($row->poids)); ?>	
<?php	}	?>